//开通来电显示
function isOpenCallsDisplay() {
	$("#hidden_isOpenCallsDisplay").attr("value", "true");
}
//不开通来电显示
function noOpenCallsDisplay() {
	$("#hidden_isOpenCallsDisplay").attr("value", "false");
}

//马上去选号码
function selectPhoneNum() {
	//卡槽类型
	var selectedCardTrough = $("#hidden_selectedCardTrough").attr("value");
	if(selectedCardTrough == ""){
		alert("请先选择卡槽类型");
		return;
	}
	//判断之前是否已经选择号码，如果选择则将以前所选号码状态更改为未锁定
	var selectedPhoneNum = $("#hidden_selectedPhoneNum").val();
	var hostName = $("#hidden_hostName").val();
	var cardId = $("#hidden_cardId").val();
	var cardTrough = $("#hidden_cardTrough").val();
	//是否开通来电显示
	var isOpenCallsDisplay = $("#hidden_isOpenCallsDisplay").val();
	window.location.href = "chooseNum.jhtml?selectedCardTrough="+ selectedCardTrough +"&selectedPhoneNum="+ selectedPhoneNum +"&hostName="+ hostName +"&cardId="+ cardId +"&cardTrough="+ cardTrough +"&isOpenCallsDisplay="+ isOpenCallsDisplay +"";
}

//确认资费说明 
function submitFeeIllustrate() {
	//卡槽类型
	var selectedCardTrough = $("#hidden_selectedCardTrough").attr("value");
	//判断之前是否已经选择号码，如果选择则将以前所选号码状态更改为未锁定
	var selectedPhoneNum = $("#hidden_selectedPhoneNum").attr("value");
	var hostName = $("#hidden_hostName").val();
	var cardId = $("#hidden_cardId").val();
	var cardTrough = $("#hidden_cardTrough").val();
	//是否开通来电显示
	var isOpenCallsDisplay = $("#hidden_isOpenCallsDisplay").attr("value");
	//商品ID
	var productId = $("#hidden_productId").attr("value");
	//当前地址
	var currentLocation = $("#hidden_currentLocation").attr("value");
	if(currentLocation == "" || currentLocation == "chooseNumDec"){
		window.location.href = "chooseNumDec.jhtml?productId="+productId+"&selectedCardTrough="+ selectedCardTrough +"&selectedPhoneNum="+ selectedPhoneNum +"&hostName="+ hostName +"&cardId="+ cardId +"&cardTrough="+ cardTrough +"&isOpenCallsDisplay="+ isOpenCallsDisplay +"";
	}
	if(currentLocation == "chooseNum"){
		window.location.href = "chooseNum.jhtml?productId="+productId+"&selectedCardTrough="+ selectedCardTrough +"&selectedPhoneNum="+ selectedPhoneNum +"&hostName="+ hostName +"&cardId="+ cardId +"&cardTrough="+ cardTrough +"&isOpenCallsDisplay="+ isOpenCallsDisplay +"";
	}
}